package com.ssrs.framework.point;

import com.ssrs.framework.FrameworkPlugin;
import com.ssrs.framework.extend.ExtendException;
import com.ssrs.framework.extend.IExtendAction;
import com.ssrs.framework.extend.annotation.ExtendPoint;

import java.util.Set;

/**
 *添加用户角色扩展点
 *
 * @author ssrs
 */
@ExtendPoint(
        plugin = FrameworkPlugin.class,
        description = "添加用户角色扩展点")
public abstract class AddUserRolesPoint implements IExtendAction {
    public static final String ID = "com.ssrs.framework.point.AddUserRolesPoint";

    @Override
    public Object execute(Object[] args) throws ExtendException {
        return execute();
    }

    /**
     * 执行方法
     *
     * @return 返回Set<String>
     */
    public abstract Set<String> execute();
}
